<!DOCTYPE html>
<!--
Copyright 2011, the Google Tasks Chrome Extension authors.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<script src="third_party/chromium/chrome_ex_oauthsimple.js"></script>
<script src="third_party/chromium/chrome_ex_oauth.js"></script>
<script src="oauth_credentials.js"></script>
<script type="text/javascript">
// Note that oauth_credentials.js is not open source, to protect the Application
// key and secret. For development / hacking, you may use your own obtained from
// https://code.google.com/apis/console. Then simply create oauth_credentials.js
// and declare oauth_consumer_key and oauth_consumer_secret.
if (!window.oauth_consumer_key || !window.oauth_consumer_secret) {
  window.alert('You must supply an OAuth key and secret');
}

var oauth = ChromeExOAuth.initBackgroundPage({
  'request_url': 'https://www.google.com/accounts/OAuthGetRequestToken',
  'authorize_url': 'https://www.google.com/accounts/OAuthAuthorizeToken',
  'access_url': 'https://www.google.com/accounts/OAuthGetAccessToken',
  'consumer_key': oauth_consumer_key,
  'consumer_secret': oauth_consumer_secret,
  'scope': 'https://www.googleapis.com/auth/tasks',
  'app_name': 'Tasks Extension',
  'callback_page': 'third_party/chromium/chrome_ex_oauth.html'
});

oauth.authorize(function() {});
</script>
<script src="tasksapi.js"></script>
<script src="menus.js"></script>
<script src="omnibox.js"></script>
